/*************************************************************************
	> File Name: dealing.c
	> Author: Angel Criss
	> Blog: blog.abbycin.tk 
	> Created Time: Thu 03 Jul 2014 09:29:20 PM CST
 ************************************************************************/
#include "head.h"

void dealing(int sig, siginfo_t *info, void *uncontext)
{
    timer_t *id; //declare timer id
    id=info->si_value.sival_ptr; // get the timer_t id
    if(sig==SIGALRM)
        printf("\e[45mtimer expirated\e[0m\n\n");
    printf("timer expiration times is: %d(s)\n",timer_getoverrun(*id)); // no obvious affect
    return;
}
